extends "../dujiaoshou-2/dujiaoshou-2.gd"

func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("<唯一>赋予全体友军15%冷却缩减", "装填指挥", "dujiaoshou3", 3)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "dujiaoshou3":
		dujiaoshou3()

func dujiaoshou3():
	for i in getAllChas(2):
		if not i.hasBuff("b_dujiaoshou"):
			castBuff(i, b_dujiaoshou.new())

class b_dujiaoshou:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_dujiaoshou"
		buffName = "装填指挥"
		dispel = 2
		att.cd = 0.15
	func _connect():
		if casCha.upgraded == 2:
			att.cd = 0.25
